import request, { service, sseConfig } from '@/utils/request'

// 声明基本路径
let basePath = window.location.pathname.includes('test') ? '/wydc/' : '/wydc/'


export function phoneLogin(data) {
    return request({
        url: basePath + 'intv/login/phoneLogin',
        method: 'post',
        data
    })
}

export function captchaSms(data) {
    return request({
        url: basePath + 'intv/login/captcha/sms',
        method: 'post',
        data
    })
}

export function captchaImage(data) {
    return request({
        url: basePath + 'intv/login/captcha/image',
        method: 'get',
        data
    })
}